// [[ OnflowGenerator Entity UUID: 27e1d98ba75541a79c92c8c01e5d6451 ]]
package com.itdct.onflow.system.file.entity

import com.baomidou.mybatisplus.annotation.TableName
import com.itdct.onflow.core.annotation.Column
import com.itdct.onflow.core.annotation.ColumnRelateId
import com.itdct.onflow.core.annotation.TableDescription
import com.itdct.onflow.core.entity.IdEntity

/**
 * @author Zhouwx
 * @date 2025/9/28 15:16:01
 * @version 1.0
 * @description
 */
@TableDescription("系统文件错误信息")
@TableName("sys_file_fail_reason")
class SysFileFailReasonEntity : IdEntity() {
    @ColumnRelateId(targetClass = SysFileEntity::class, targetFieldName = "fileName")
    @Column(comment = "文件id关联", nullable = false, defaultValue = "0", indexed = true, sort = 10)
    var fileId = 0L

    @Column(comment = "行号", nullable = false, defaultValue = "0", sort = 20)
    var rowNum = 0

    @Column(comment = "错误信息", nullable = false, length = 500, sort = 30)
    var errorMessage = ""

    @Column(comment = "整改意见", nullable = true, length = 500, sort = 40)
    var advice = ""
}